package com.oa.pm.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.oa.core.PageResult;
import com.oa.pm.entity.CheckIn;
import com.oa.pm.mapper.CheckInMapper;
import com.oa.pm.service.ICheckInService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

@Service
public class CheckInServiceImpl extends ServiceImpl<CheckInMapper, CheckIn> implements ICheckInService {


    @Autowired
    private CheckInMapper checkInMapper;

    @Override
    public PageResult<CheckIn> findCheckInList(String name, Date beginTime, Date endTime, Integer pageNum, Integer pageSize) {
        Page page = new Page();
        return new PageResult<>(checkInMapper.findCheckInList(page, name, beginTime, endTime), page);
    }
}
